/**
 * Tree style for KISSY
 * @author yiminghe@gmail.com
 */

@import "../../css/assets/dpl/variables.less";
@import "../../css/assets/dpl/mixins.less";

.ks-tree-node-icon(){
    width: 19px;
    height: 16px;
    vertical-align: middle; // url("dpl/dpl.png");
    background-image: url("http://img02.taobaocdn.com/tps/i2/T1S_TEXc4nXXasE3se-390-192.png");
    .ks-inline-block_();
}

.ks-tree-node-hide-root {
    display: none;
}

.ks-tree-node-focused {
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.ks-tree-node-row {
    white-space: nowrap;
    line-height: 16px;
    height: 16px;
}

.ks-tree-node-lchildren {
    padding-left: 19px;
}

.ks-tree-node-children {
    padding-left: 19px;
    background-repeat: repeat-y; //url("dpl/I.png");
    background-image: url("http://img03.taobaocdn.com/tps/i3/T1YUvFXoXcXXbVJQDa-19-16.png");
}
.ks-tree-node-children-collapsed {
  display: none;
}

.ks-tree-node-expand-icon-plus {
    .ks-tree-node-icon();
    background-position: 0 0;
}

.ks-tree-node-expand-icon-minus {
    .ks-tree-node-icon();
    background-position: -222px 0;
}

.ks-tree-node-expand-icon-tplus {
    .ks-tree-node-icon();
    background-position: -246px 0;
}

.ks-tree-node-expand-icon-tminus {
    .ks-tree-node-icon();
    background-position: -270px 0;
}

.ks-tree-node-expand-icon-lplus {
    .ks-tree-node-icon();
    background-position: -294px 0;
}

.ks-tree-node-expand-icon-lminus {
    .ks-tree-node-icon();
    background-position: -318px 0;
}

.ks-tree-node-expand-icon-t {
    .ks-tree-node-icon();
    background-position: -342px 0;
}

.ks-tree-node-expand-icon-l {
    .ks-tree-node-icon();
    background-position: -366px 0;
}

.ks-tree-node-collapsed-folder-icon {
    .ks-tree-node-icon();
    width: 16px;
    background-position: -198px -24px;
}

.ks-tree-node-expanded-folder-icon {
    .ks-tree-node-icon();
    width: 16px;
    background-position: -222px -24px;
}

.ks-tree-node-file-icon {
    .ks-tree-node-icon();
    width: 16px;
    background-position: -246px -24px;
}

.ks-tree-node-content {
    display: inline;
    margin-left: 3px;
    padding: 1px 2px 1px 2px;
    text-decoration: none;
    &:hover {
        text-decoration: underline;
    }
}

.ks-tree-node-selected {
    .ks-tree-node-content {
        background: #08c;
        color: white;
    }
}

.ks-tree-node-focused {
    .ks-tree-node-selected {
        .ks-tree-node-content {
            background: highlight;
            color: highlighttext;
        }
    }
}

.ks-tree-node-check(){
    .ks-tree-node-icon();
    background-image: url("http://img02.taobaocdn.com/tps/i2/T1S_TEXc4nXXasE3se-390-192.png");
    width: 16px;

}

.ks-tree-node-checked0 {
    .ks-tree-node-check();
    background-position: 0 -2px;

}

.ks-tree-node-checked1 {
    .ks-tree-node-check();
    background-position: -66px -2px;
}

.ks-tree-node-checked2 {
    .ks-tree-node-check();
    background-position: -132px -2px;
}
